﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinFormsAppTest.pojo
{
    internal class Admin
    {
        private int adminid;
        private string name;
        private string password;

        public int Adminid { get => adminid; set => adminid = value; }
        public string Name { get => name; set => name = value; }
        public string Password { get => password; set => password = value; }

        public Admin(int adminid, string name, string password)
        {
            this.adminid = adminid;
            this.name = name ?? throw new ArgumentNullException(nameof(name));
            this.password = password ?? throw new ArgumentNullException(nameof(password));
        }

        public Admin()
        {
        }
    }
}
